﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Common;

namespace Ex09
{
    /// <summary>
    /// Reevaluation
    /// </summary>
    class Program
    {
        static void Main(string[] args)
        {
            var numbers = new List<int>() { 1, 2 };

            IEnumerable<int> query = numbers.Select(n => n * 10);

            query.Dump("Both elements are returned");

            numbers.Clear();

            query.Dump("All the elements are now gone!");//Reevaluate
            Console.ReadKey();
        }
    }
}
